<%@ Page Language="C#" MasterPageFile="~/Common/WebSiteMaster.master" AutoEventWireup="true" Codebehind="F_Triggers.aspx.cs"
    Inherits="ScottCateAjax2008.Lesson05.F_Triggers" Title="Controls outside of the update panel, can 'Trigger' updates" %>

<%@ Register Src="../UserControls/TimeLabelButton.ascx" TagName="TimeLabelButton"
    TagPrefix="ScottCate" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <asp:ScriptManager id="ScriptManager1" ScriptMode="debug" runat="server">
    </asp:ScriptManager>

    <asp:UpdatePanel id="UpdatePanel1" UpdateMode="Conditional" runat="server">
        <contenttemplate>
            
            <ScottCate:TimeLabelButton id="TimeLabelButton1" runat="server" />
            
            <asp:Button id="FullPostBackButton1" 
                Text="Regular Button in Update Panel" runat="server" />
                
            <br />
            
            <asp:Button id="FullPostBackButton2" 
                Text="Regular Button in Update Panel (Marked as PostbackTrigger)" runat="server" />
            
        </contenttemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="FullPostBackButton2" />
            <asp:AsyncPostBackTrigger ControlID="FullPostBackButton3" />
            <asp:AsyncPostBackTrigger ControlID="TriggerLinkButton1" />
        </Triggers>
    </asp:UpdatePanel>

    <br /><br />
    
    <h2>Controls outside the Update Panel</h2>
    <asp:Button id="FullPostBackButton3" 
        Text="Full Postback Button2 (Marked as AsyncPostBackTrigger)" 
        runat="server" /><br />
    
    <asp:Button id="FullPostBackButton4" 
        Text="Full Postback Button3 (not Marked as Trigger)" runat="server" /><br />
    
    <asp:LinkButton ID="TriggerLinkButton1" 
        Text="Link Button Trigger (Marked as AsyncPostBackTrigger)" runat="server" />

</asp:Content>









